package com.hippoframework.test;
import com.hippoframework.annotation.Component;
import com.hippoframework.bean.FactoryBean;

/**
 * @author TylerW
 * @date 4/23/2020 4:40 PM
 */
@Component
public class UserFactoryBean implements FactoryBean<User> {

    @Override
    public User getObject() {
        User user = new User();
        user.setAge(10);
        return user;
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
